<?php
Route::group(['prefix' => 'ads', 'namespace' => 'Ads', 'as' => 'ads.'], function () {

    //广告栏目
    Route::group(['prefix' => 'category'], function () {
        Route::patch('sort_order', 'CategoryController@sort_order')->name('category.sort_order');
        Route::patch('change_attr', 'CategoryController@change_attr')->name('category.change_attr');
    });
    Route::resource('category', 'CategoryController');


    //广告列表
    Route::group(['prefix' => 'ad'], function(){
        Route::patch('sort_order', 'AdController@sort_order')->name('ad.sort_order');
        Route::delete('destroy_checked', 'AdController@destroy_checked')->name('ad.destroy_checked');
    });
    Route::resource('ad', 'AdController');

});